package com.alibaba.citrus.cr.mn.order.center.facade.function.convert;

import com.epoch.app.mnordercenter.model.dto.OrderLineBizQueryRequest;
import com.epoch.app.mnordercenter.model.dto.OrderLineRepoQueryReq;

/**
 * @author zhoubc
 * @date 2023/5/26 12:03
 */
public class OrderLineBizQueryRequestToOrderLineRepoQueryReqConvertor {

    public static OrderLineRepoQueryReq convert(OrderLineBizQueryRequest orderLineBizQueryRequest) {
        OrderLineRepoQueryReq orderLineRepoQueryReq = new OrderLineRepoQueryReq();
        orderLineRepoQueryReq.setId(orderLineBizQueryRequest.getId());
        orderLineRepoQueryReq.setOrderId(orderLineBizQueryRequest.getOrderId());
        orderLineRepoQueryReq.setOrderBizId(orderLineBizQueryRequest.getOrderBizId());
        orderLineRepoQueryReq.setOrderTypeList(orderLineBizQueryRequest.getOrderTypeList());
        orderLineRepoQueryReq.setOuterOrderId(orderLineBizQueryRequest.getOuterOrderId());
        orderLineRepoQueryReq.setFrontOrderBizId(orderLineBizQueryRequest.getFrontOrderBizId());
        orderLineRepoQueryReq.setForecastOrderType(orderLineBizQueryRequest.getForecastOrderType());
        orderLineRepoQueryReq.setSubStatusList(orderLineBizQueryRequest.getSubStatusList());
        orderLineRepoQueryReq.setCustomerCode(orderLineBizQueryRequest.getCustomerCode());
        orderLineRepoQueryReq.setReceiveAddressCode(orderLineBizQueryRequest.getReceiveAddressCode());
        orderLineRepoQueryReq.setScItemCodeLike(orderLineBizQueryRequest.getScItemCodeLike());
        orderLineRepoQueryReq.setScItemTitleLike(orderLineBizQueryRequest.getScItemTitleLike());
        orderLineRepoQueryReq.setCustomerReferenceNo(orderLineBizQueryRequest.getCustomerReferenceNo());
        orderLineRepoQueryReq.setBizChannelList(orderLineBizQueryRequest.getBizChannelList());
        orderLineRepoQueryReq.setSalesOrganizations(orderLineBizQueryRequest.getSalesOrganizations());
        orderLineRepoQueryReq.setSaleChannels(orderLineBizQueryRequest.getSaleChannels());
        orderLineRepoQueryReq.setSalesDepartments(orderLineBizQueryRequest.getSalesDepartments());
        orderLineRepoQueryReq.setCustomerExpectDateList(orderLineBizQueryRequest.getCustomerExpectDateList());
        orderLineRepoQueryReq.setProductGroupCodeList(orderLineBizQueryRequest.getProductGroupCodeList());
        orderLineRepoQueryReq.setCreateReasonList(orderLineBizQueryRequest.getCreateReasonList());
        orderLineRepoQueryReq.setRejectReasonList(orderLineBizQueryRequest.getRejectReasonList());
        orderLineRepoQueryReq.setCustomerPurchaseDateList(orderLineBizQueryRequest.getCustomerPurchaseDateList());
        orderLineRepoQueryReq.setShippingWarehouseList(orderLineBizQueryRequest.getShippingWarehouseList());
        orderLineRepoQueryReq.setDeliveryMethod(orderLineBizQueryRequest.getDeliveryMethod());
        orderLineRepoQueryReq.setGmtCreateList(orderLineBizQueryRequest.getGmtCreateList());
        orderLineRepoQueryReq.setCreatorId(orderLineBizQueryRequest.getCreatorId());
        orderLineRepoQueryReq.setCreatorIdList(orderLineBizQueryRequest.getCreatorIdList());
        orderLineRepoQueryReq.setCreator(orderLineBizQueryRequest.getCreator());
        orderLineRepoQueryReq.setGmtUpdateList(orderLineBizQueryRequest.getGmtUpdateList());
        orderLineRepoQueryReq.setUpdatorId(orderLineBizQueryRequest.getUpdatorId());
        orderLineRepoQueryReq.setUpdator(orderLineBizQueryRequest.getUpdator());
        orderLineRepoQueryReq.setBisUnitOutCodes(orderLineBizQueryRequest.getBisUnitOutCodes());
        orderLineRepoQueryReq.setSalesOrganizationOutCodes(orderLineBizQueryRequest.getSalesOrganizationOutCodes());
        orderLineRepoQueryReq.setSalesChannelOutCodes(orderLineBizQueryRequest.getSalesChannelOutCodes());
        orderLineRepoQueryReq.setSalesDepartmentOutCodes(orderLineBizQueryRequest.getSalesDepartmentOutCodes());
        orderLineRepoQueryReq.setBusinessType(orderLineBizQueryRequest.getBusinessType());
        orderLineRepoQueryReq.setBusinessTypes(orderLineBizQueryRequest.getBusinessTypes());

        orderLineRepoQueryReq.setStart(orderLineBizQueryRequest.getStart());
        orderLineRepoQueryReq.setLimit(orderLineBizQueryRequest.getLimit());
        orderLineRepoQueryReq.setDir(orderLineBizQueryRequest.getDir());
        orderLineRepoQueryReq.setAsc(orderLineBizQueryRequest.getAsc());
        orderLineRepoQueryReq.setFields(orderLineBizQueryRequest.getFields());
        orderLineRepoQueryReq.setSize(orderLineBizQueryRequest.getSize());
        orderLineRepoQueryReq.setPage(orderLineBizQueryRequest.getPage());
        return orderLineRepoQueryReq;
    }

}
